/*
 * Created on 2005/04/25
 * Author aki@www.xucker.jpn.org
 * License Apache2.0 or Common Public License
 */
package jp.sourceforge.akjrcp.snack;

/**
 * 
 *
 */
public class Formant {
private double f1;
private double f2;
private double f3;
private double f4;
private double b1;
public String toString(){
    return "F("+f1+","+f2+","+f3+","+f4+"),B("+b1+","+b2+","+b3+","+b4+")";
}
public static double defaultMillisecond=10;
public static double toMillisecond(Formant[] formants){
    return formants.length*defaultMillisecond;
}
public double getB1() {
    return b1;
}
public void setB1(double b1) {
    this.b1 = b1;
}
public double getB2() {
    return b2;
}
public void setB2(double b2) {
    this.b2 = b2;
}
public double getB3() {
    return b3;
}
public void setB3(double b3) {
    this.b3 = b3;
}
public double getB4() {
    return b4;
}
public void setB4(double b4) {
    this.b4 = b4;
}
public double getF1() {
    return f1;
}
public void setF1(double f1) {
    this.f1 = f1;
}
public double getF2() {
    return f2;
}
public void setF2(double f2) {
    this.f2 = f2;
}
public double getF3() {
    return f3;
}
public void setF3(double f3) {
    this.f3 = f3;
}
public double getF4() {
    return f4;
}
public void setF4(double f4) {
    this.f4 = f4;
}
private double b2;
private double b3;
private double b4;
}
